//package cn.xspace.wnx.xmpp;
//
//import android.content.BroadcastReceiver;
//import android.content.Context;
//import android.content.Intent;
//import android.util.Log;
//
//import com.xspace.android.xafcommon.appliction.BaseAppliction;
//import com.xspace.android.xafcommon.util.AppUtils;
//
///**
// * 接收alarmManager的广播
// */
//public class XmppConnectCheckBroad extends BroadcastReceiver {
//    @Override
//    public void onReceive(Context con, Intent arg1) {
//        if (!AppUtils.isConnected(con)) {
//            Log.v("broad-WNX", "XmppConnectCheckBroad*************网络不可用*************");
//            return;
//        }
////        String jid = ImPreferences.getInstance(con).getPfString(AppUtils.userName);
//
//        if (BaseApplication.mInstance != null && !BaseApplication.mInstance.isAccountConfigured()) {
//            Log.v("broad-WNX", "XmppConnectCheckBroad************is NOT   AccountConfigured *************");
//            return;
//        }
//        Log.v("broad-WNX", "XmppConnectCheckBroad*************onReceive*************");
////        Class clz = null;
////        try {
////            clz = Class.forName("cn.xspace.wnx.service.IMChatService");
////        } catch (ClassNotFoundException e) {
////            e.printStackTrace();
////        }
////        //启动服务
////        Intent intent = new Intent(con, clz);
////        intent.setPackage(con.getPackageName());
////        con.startService(intent);
//    }
//}
